package stream;

import java.io.FileInputStream;
import java.io.IOException;

public class FileStream  {
	public static void main(String[] args) throws IOException{
		FileInputStream fs=new FileInputStream("demo01.txt");
		byte[] by=new byte[4];
		fs.read(by);
		System.out.println(by[0]);
		
		int i=fs.read();
		System.out.println(i);
		i=fs.read();
		System.out.println(i);
	}
}
